import request from '@/utils/request'

export function getTenantList() {
  return request({
    url: '/tenants',
    method: 'get'
  })
}

export function getTenantPage(data) {
  return request({
    url: '/tenants/page',
    method: 'get',
    params: data
  })
}

export function addTenants(data) {
  return request({
    url: '/tenants',
    method: 'post',
    data
  })
}

export function updateTenants(data) {
  return request({
    url: '/tenants',
    method: 'put',
    data
  })
}

export function deleteTenants(id) {
  return request({
    url: '/tenants/' + id,
    method: 'delete'
  })
}
